home *** CD-ROM | disk | FTP | other *** search
- //
- // The Fusion Library Interface for DOS
- // Version 1.06c
- // Copyright (C) 1990, 1991, 1992
- // Software Dimensions
- //
- // DialogClass
- //
-
- #include "fli.h"
-
- #ifdef __BCPLUSPLUS__
- #pragma hdrstop
- #endif
-
- #include <alloc.h>
-
- //-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
- //
- // GroupElement()
- //
- // Add a grouped element to the linked list
- //
- //-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
-
- void DialogClass::GroupElement(int Group,DialogElement *Element)
- {
- DialogClass::Element(Element);
- Element->GroupCode=Group;
- if (Group)
- Grouped++;
- }
-
- //-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
- //
- // GroupHeading()
- //
- // Add a heading to the grouped elements
- //
- //-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
-
- void DialogClass::GroupHeading(int X,int Y,int Group,char *Title,int HotKey)
- {
- HeadingStorage=(_GroupHeadings*)
- realloc(HeadingStorage,sizeof(_GroupHeadings)*++HeadingCount);
-
- _GroupHeadings &Head=*(HeadingStorage+HeadingCount-1);
-
- Head.X=X;
- Head.Y=Y;
- Head.GroupCode=Group;
- Head.Heading=Title;
- Head.HotKey=HotKey;
- }
-
-